import request from '@/libs/request'
import constant from '@/libs/constant'

export const captchaUrl = constant.captchaApiPath

export const upload = (files, onUploadProgress) => {
  return request({
    url: '/commons/uploadFile',
    method: 'post',
    data: files,
    onUploadProgress
  })
}
